import reqCode from '@/config/reqCode'
import xml2js from '@/utils/xml2js'
import commonRequest from '@/request/commonRequest'
import cacheHandler from '@/utils/cacheHandler'
import { config } from '@/config/systemConfig.js'


function getDefaultPat(request) {
  const code = reqCode.PATIENT_CARD_DEFAULT_CARD
  const terminalId = cacheHandler.getTerminalId()
  const obj = { 'body': { terminalId, ...request }}
  const requestBody = commonRequest.generateRequest(code, config.SERVICE_REQUEST_VERSION, obj)
  return requestBody
}

export default {
  getDefaultPat
}
